for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
$('.amarkal-settings-button').on('click',function(e){
e.preventDefault();
var $button = $(this);
console.log(getFormData());
console.log
if(!$button.data('disabled'))
{
$('.amarkal-settings-button').data('disabled',true);
$button.addClass('processing');
$.post(ajaxurl, {
ajaxurl
/** global: ajaxurl */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
action: 'amarkal_settings_'+$button.val(),
data: getFormData()
}, function(res){
console.log(res);
$button.removeClass('processing');
$('.amarkal-settings-button').data('disabled',false);
});
}